global $current_user; get_currentuserinfo(); echo $current_user->user_email;
$user = get_user_by( 'email', '[email protected]' ); $userId = $user->ID;